package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("coment")
public class Comment {
    /**
    * 主键
    */
    private Integer comId;

    /**
    * 评论用户
    */
    private Integer comUserId;

    /**
    * 那家店铺的评论
    */
    private Integer comBusinessId;

    /**
    * 服务员
    */
    private Integer comClerkId;

    /**
    * 评论时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date comTime;

    /**
    * 评论详情
    */
    private String comContent;

    /**
    * 评论星级1-5星
    */
    private Integer comStar;
    //评论类型
    private Integer comReply;

    /**
    * 评论图片
    */
    private String comIamge;
    //用户
    private Users users;

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public Integer getComUserId() {
        return comUserId;
    }

    public void setComUserId(Integer comUserId) {
        this.comUserId = comUserId;
    }

    public Integer getComBusinessId() {
        return comBusinessId;
    }

    public void setComBusinessId(Integer comBusinessId) {
        this.comBusinessId = comBusinessId;
    }

    public Integer getComClerkId() {
        return comClerkId;
    }

    public void setComClerkId(Integer comClerkId) {
        this.comClerkId = comClerkId;
    }

    public Date getComTime() {
        return comTime;
    }

    public void setComTime(Date comTime) {
        this.comTime = comTime;
    }

    public String getComContent() {
        return comContent;
    }

    public void setComContent(String comContent) {
        this.comContent = comContent;
    }

    public Integer getComStar() {
        return comStar;
    }

    public void setComStar(Integer comStar) {
        this.comStar = comStar;
    }

    public String getComIamge() {
        return comIamge;
    }

    public void setComIamge(String comIamge) {
        this.comIamge = comIamge;
    }
}